package com.sunelec.service;

import com.sunelec.pojo.Power;
import com.sunelec.pojo.SunElecResult;
import com.sunelec.pojo.Users;
import sun.security.provider.Sun;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author: 郑明利
 * @Description:
 * @Date: Create in 13:29 2018/04/17
 * @Modified By:
 */
public interface UserService {

    SunElecResult checkData(String content, Integer type);

    SunElecResult userLogin(String username, String password, HttpServletRequest request, HttpServletResponse response);

    SunElecResult createUser(Users users);

    SunElecResult createPower(Power power,String username);

    SunElecResult makeRelationship(String powerId, String username);

    SunElecResult makeRelationship2(String powerId, String collectId);
}
